package containers

import "fmt"

var luqvxianMap = make(map[string]float32)

func QueryLuqvxian() {
	luqvxianMap["重庆"] = 450
	luqvxianMap["成都"] = 440
	luqvxianMap["万州"] = 460
	luqvxianMap["广州"] = 411
	luqvxianMap["北京"] = 499
	luqvxianMap["上海"] = 350

	var address string
	fmt.Println("请输入查询地址")
	fmt.Scanln(&address)
	if luqvxianMap[address] == 0 {
		fmt.Println(address, "的录取线没查到")
	} else {
		fmt.Println(address, "的录取线是：", luqvxianMap[address])
	}
}

func tianchong() {
	luqvxianMap["重庆"] = 450
	luqvxianMap["成都"] = 440
	luqvxianMap["万州"] = 460
	luqvxianMap["广州"] = 411
	luqvxianMap["北京"] = 499
	luqvxianMap["上海"] = 350

}

func Tongji() {
	tianchong()
	for k, v := range luqvxianMap {
		if v > 420 {
			fmt.Println("满足的地点是：", k)
		}
	}

}
